package edu.pku.sei.transformation.structure;

public class Key {
	
	private String[] factors = null;
	private String typename = null;
	
	public String[] getFactors()
	{
		return factors;
	}
	
	public void setFactors(String[] factors)
	{
		this.factors = factors;
	}
	
	public String getTypeName()
	{
		return typename;
	}
	
	public void setTypeName(String typename)
	{
		this.typename = typename;
	}
	
	public boolean containFactor(String f){
		if(f==null) return false;
		for(String s : factors){
			if(s.equals(f))
				return true;
		}
		return false;
	}

}
